package com.digitalgeko.pruebasdeconcepto;

import com.digitalgeko.pruebasdeconcepto.complements.*;

import android.app.*;
import android.content.pm.*;
import android.os.*;

public class RotacionActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		switch (GeneralParameter.selectedOrientation) {
		case 0:
			setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
			break;
		case 1:
			setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
			break;
		default:
			setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
			break;
		}

		setContentView(R.layout.rotacion);
	}
	
}
